<template>
	<view class="bigpage">
		<u-swiper
		            :list="list1"
		           indicator
				   indicatorMode="line"
				   circular
		    ></u-swiper>
		<view class="page">
			<view class="card">
				<view class="card_name">
					{{content.activityTitle}}
				</view>
				<view class="zhuangtai display">
					<view class="zhuangtai_item" v-show="content.activeState==1">
						进行中
					</view>
					<view class="zhuangtai_item" v-show="content.activeState==2">
						已结束
					</view>
					
					
				</view>
				<view class="display" style="margin-top: 10rpx;">
					<view class="card_left">
						<view class="smalltittle">
活动位置
						</view>
						<view class="card_tittle">
							{{content.activityLocation}}
						</view>
						<view class="smalltittle">
							活动时间
						</view>
						<view class="card_tittle">
							{{content.activityTime}}
						</view>
						
						
					</view>
					
				</view>
			</view>
			
			<view class="card">
				<view class="tittle">
					活动内容
				</view>
				<view class="details" v-html="content.activityContent">
					
				</view>
			</view>
			
			<!-- <view class="card">
				<view class="tittle">
					领养要求
				</view>
				<view class="details">
					{{content.adoptionRequirements}}
				</view>
			</view> -->
			
		</view>
		<!-- <view class="shenqing">
			申请
		</view> -->
	</view>
</template>

<script>
	import {
		getDetails
	} from "@/api/request.js";
	export default {
	        data() {
	            return {
					content:{},
	                list1: [
	                   
	                ]
	            }
	        },
			onLoad(option) {
				// this.getAnnouncementDetails(option.uuid)
				// 公告详情
				getDetails('/service/activities/',option.uuid).then((res) => {
					this.content=res.data.data
					this.list1.push(this.content.coverImage)
					// this.content.sintrReleaseImages.forEach(item=>{
					// 	this.list1.push(item.imageUrl)
						
					// })
				})
			},
	    }
</script>

<style scoped>
	.shenqing{
		margin: 20rpx auto;
		background-color: #FF8297;
		color: #fff;
		border-radius: 50rpx;
		width: 300rpx;
		height: 100rpx;
		text-align: center;
		line-height: 100rpx;
	}
	.card_left{
		width: 50%;
	}
	.bigpage{
		background-color: #f3f4f6;
		height: 98vh;
	}
	.page{
		padding: 10rpx;
		box-sizing: border-box;
	}
	.card{
		margin-top: 20rpx;
		border-radius: 30rpx;
		padding: 20rpx;
		background-color: #fff;
		
	}
	.card_name{
		font-size: 20px;
		font-weight: bold;
	}
	.zhuangtai{
		margin-top: 10rpx;
	}
	.zhuangtai_item{
		font-size: 12px;
		padding: 8rpx;
		box-sizing: border-box;
		background-color: #FF8297;
		color: #fff;
		margin-right: 10rpx;
	}
	.smalltittle{
		font-size: 14px;
		color: #bfbfbf;
	}
	.tittle{
		font-size: 18px;
		font-weight: bold;
	}
	.details{
		font-size: 14px;
		color: #bfbfbf;
	}
</style>